<template>
  <svg class="icon" aria-hidden="true" :style="iconStyle">
    <use :xlink:href="nameValue"></use>
  </svg>
</template>

<script>
export default {
  name: "iconfont",
  props: {
    name: {
      type: String,
      default: 'icon-invoicedayinji1'
    },
    size: {
      type: String,
      default: '20'
    }
  },
  data() {
    return {}
  },
  computed: {
    nameValue() {
      return `#${this.name}`
    },
    iconStyle() {
      let size = this.size
      return {fontSize: `${size/10}rem`}
    }
  }
}
</script>

<style scoped>

</style>
